//
//  WATFSettingCell.swift
//  WiFiFaster
//
//  Created by one on 2023/12/28.
//

import UIKit

class WATFSettingCell: UICollectionViewCell {
    override init(frame: CGRect) {
        super.init(frame: frame)
        contentView.addSubview(watf_titleLabel)
        contentView.addSubview(watf_arrowView)
        
        watf_titleLabel.snp.makeConstraints { make in
            make.centerY.equalToSuperview()
            make.left.equalToSuperview().offset(16)
        }
        watf_arrowView.snp.makeConstraints { make in
            make.centerY.equalToSuperview()
            make.size.equalTo(CGSize(width: 8, height: 14))
            make.right.equalToSuperview().offset(-16)
        }
        contentView.backgroundColor = WATFCommon.watf_getHXColorValue(rgb: 0x484848)
        contentView.layer.borderColor = WATFCommon.watf_getHXColorValue(rgb: 0x4F4F4F).cgColor
        contentView.layer.borderWidth = 1
        contentView.layer.cornerRadius = 16
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    //MARK: - watf lazy
    lazy var watf_titleLabel: UILabel = {
        let watf_titleLabel = UILabel()
        watf_titleLabel.textColor = .white
        watf_titleLabel.font = UIFont.systemFont(ofSize: 16)
        return watf_titleLabel
    }()
    lazy var watf_arrowView: UIImageView = {
        let watf_arrowView = UIImageView(image: UIImage(named: "watf_setting_arrow"))
        return watf_arrowView
    }()
}
